package as.mae.app;


import mae.app.R;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

/**
 * The class for the AmericanSweetheart pattern.
 * 
 * @author Dennis Stepp
 * @version 1.0z Build 1 June 7, 2011
 * 
 */
public class AmericanSweetheart extends TabActivity {

	@Override
	public void onCreate(Bundle saveInstanceState){
		super.onCreate(saveInstanceState);
		setContentView(R.layout.tabbed);
		Resources res = getResources();
		TabHost tabHost = getTabHost();
		TabHost.TabSpec spec;
		Intent intent;
		
		intent = new Intent().setClass(this, ASMonaxPiece.class);
		
		spec = tabHost.newTabSpec("Monax").setIndicator("Monax", res.getDrawable(R.drawable.ic_tab_american_sweetheart_monax)).setContent(intent);
		tabHost.addTab(spec);
		
		intent = new Intent().setClass(this, ASPinkPiece.class);
		spec = tabHost.newTabSpec("Pink").setIndicator("Pink", res.getDrawable(R.drawable.ic_tab_american_sweetheart_pink)).setContent(intent);
		tabHost.addTab(spec);
		
		tabHost.setCurrentTab(2);
	}
}